package cn.ruituo.adv7;

public class Thread1 extends Thread {
    public Thread1(String name){
        super(name);
    }

    @Override
    public void run() {
        for(int i=1;i<=20;i++){
            System.out.println(super.getName()+" print "+i);
            try {
                sleep(30);
            } catch (InterruptedException e) {
                e.printStackTrace();
            }
        }
    }


}
